import time
start=time.perf_counter()
localtime=time.localtime()
nowtime=time.strftime("%Y-%M-%D %H:%M:%S",localtime)
end=time.perf_counter()
dur=end-start
time.sleep(0.3)
print(nowtime,dur)